*{
    margin:0px;
    padding: 0px;
    box-sizing: border-box;
}
html{
    height: 100%;
}
body{
  
    background-repeat:no-repeat ;
    background-image: url(../img/背景.png);
    background-position: center center;
    background-size: cover;
}
.nav{
width: 100%;
height: 50px;
background-color: gray;
display: flex;
justify-content: left;
align-items: center;
color: white;
}
.nav .space{
    width: 70%;
}
.nav img{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left:8px;
    margin-right: 8px;
    margin-top: 6px;
}
.nav a{
    color: white;
    text-decoration: none;
    margin-left :5px; 
    margin-right: 10px;
}
.container{
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    height: calc(100%- 50px);
    width: 100%;
}
.container .container-left{
height:100%;
width:30%;
background-color:rgba(255, 255, 255, 0.8);
}
.container .container-right{
    height:100%;
    width:70%;
    background-color: rgba(255, 255, 255, 0.8);
    overflow: auto;
    }
    .card {
        background-color: rgba(255, 255, 255, 0.8);
        border-radius: 10px;
        margin-top: 20px;
        padding: 30px;
        margin-right: 40px;
        margin-left: 40px;
    }
    
    /* 设置用户头像 */
    .card img {
        /* 整个 .card 的宽度是 200px, .card 设置了四个方向的内边距, 30px */
        /* 剩下的能放图片的空间就是 140px */
        width: 140px;
        height: 140px;
        margin-left: 40px;
        border-radius: 70px;
    }
.card h3{
    text-align: center;
    padding: 10px;
}
.card a{
    display: block;
    text-align: center;
    color: grey;
    text-decoration: none;
    margin-bottom: 10px;
}
.card .counter{
   display: flex;
   justify-content: space-around;
   margin-top: 20px;
}
.blog{
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    margin-top: 10px;
}
.blog .title{
font-size: 20px;
font-weight: 900;
text-align: center;
padding-top: 20px;
}
.blog .date{
  color: green;
  padding-bottom :10px; 
  padding-top: 10px;
  text-align: center;
}
.blog .desc{
    text-indent: 2em;
    line-height: 30px;
    margin-top: 20px;
}
.blog .detail{
    display: block;
    color: black;
    text-align: center;
    width: 140px;
    height: 30px;
    margin: 10px auto 0px auto;
    border: 2px solid black;
    line-height: 25px;
}
.blog .detail:active{
    color: blue;
}
